package org.tang.springcloudvv.model;

import java.io.Serializable;

public class Log4jjWithBLOBs extends Log4jj implements Serializable {
    private String desc;

    private String operurl;

    private String memo;

    private String error;

    private static final long serialVersionUID = 1L;

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getOperurl() {
        return operurl;
    }

    public void setOperurl(String operurl) {
        this.operurl = operurl;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", desc=").append(desc);
        sb.append(", operurl=").append(operurl);
        sb.append(", memo=").append(memo);
        sb.append(", error=").append(error);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Log4jjWithBLOBs other = (Log4jjWithBLOBs) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getSyslevel() == null ? other.getSyslevel() == null : this.getSyslevel().equals(other.getSyslevel()))
            && (this.getEvent() == null ? other.getEvent() == null : this.getEvent().equals(other.getEvent()))
            && (this.getEventPath() == null ? other.getEventPath() == null : this.getEventPath().equals(other.getEventPath()))
            && (this.getFromApp() == null ? other.getFromApp() == null : this.getFromApp().equals(other.getFromApp()))
            && (this.getFromAppPort() == null ? other.getFromAppPort() == null : this.getFromAppPort().equals(other.getFromAppPort()))
            && (this.getOperresult() == null ? other.getOperresult() == null : this.getOperresult().equals(other.getOperresult()))
            && (this.getAccessip() == null ? other.getAccessip() == null : this.getAccessip().equals(other.getAccessip()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUsedtime() == null ? other.getUsedtime() == null : this.getUsedtime().equals(other.getUsedtime()))
            && (this.getDesc() == null ? other.getDesc() == null : this.getDesc().equals(other.getDesc()))
            && (this.getOperurl() == null ? other.getOperurl() == null : this.getOperurl().equals(other.getOperurl()))
            && (this.getMemo() == null ? other.getMemo() == null : this.getMemo().equals(other.getMemo()))
            && (this.getError() == null ? other.getError() == null : this.getError().equals(other.getError()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getSyslevel() == null) ? 0 : getSyslevel().hashCode());
        result = prime * result + ((getEvent() == null) ? 0 : getEvent().hashCode());
        result = prime * result + ((getEventPath() == null) ? 0 : getEventPath().hashCode());
        result = prime * result + ((getFromApp() == null) ? 0 : getFromApp().hashCode());
        result = prime * result + ((getFromAppPort() == null) ? 0 : getFromAppPort().hashCode());
        result = prime * result + ((getOperresult() == null) ? 0 : getOperresult().hashCode());
        result = prime * result + ((getAccessip() == null) ? 0 : getAccessip().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUsedtime() == null) ? 0 : getUsedtime().hashCode());
        result = prime * result + ((getDesc() == null) ? 0 : getDesc().hashCode());
        result = prime * result + ((getOperurl() == null) ? 0 : getOperurl().hashCode());
        result = prime * result + ((getMemo() == null) ? 0 : getMemo().hashCode());
        result = prime * result + ((getError() == null) ? 0 : getError().hashCode());
        return result;
    }
}